package com.hzit.portal.service.impl;


import com.hzit.portal.service.PortalService;

import com.hzit.manager.api.RemoteManagerService;
import com.hzit.manager.api.domain.Content;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Service
public class PortalServiceImpl implements PortalService {

	@Resource
	private RemoteManagerService contentService;

	//1. 根据广告分类id查询广告列表
	@Override
	public List<Content> findContentsByCid(String id) {
		return contentService.findContentsByCategoryId(id).getData();
	}

}
